package cn.itrip.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Setter;
import lombok.Getter;

/**
 * 评论表
 * @auth chendd
 * @date 2020/12/25 08:58
 */
@Setter
@Getter
@ApiModel
@TableName("itrip_comment")
public class ItripComment {

    @TableField("id")
    @ApiModelProperty(value = "主键")
    private Long id;

    @TableField("hotelId")
    @ApiModelProperty(value = "如果产品是酒店的话 改字段保存酒店id")
    private Long hotelId;

    @TableField("productId")
    @ApiModelProperty(value = "商品id")
    private Long productId;

    @TableField("orderId")
    @ApiModelProperty(value = "订单id")
    private Long orderId;

    @TableField("productType")
    @ApiModelProperty(value = "商品类型(0:旅游产品 1:酒店产品 2:机票产品)")
    private Integer productType;

    @TableField("content")
    @ApiModelProperty(value = "评论内容")
    private String content;

    @TableField("userId")
    @ApiModelProperty(value = "用户编号")
    private Long userId;

    @TableField("isHavingImg")
    @ApiModelProperty(value = "是否包含图片(当用户上传评论时检测)0:无图片 1:有图片")
    private Integer isHavingImg;

    @TableField("positionScore")
    @ApiModelProperty(value = "位置评分")
    private Integer positionScore;

    @TableField("facilitiesScore")
    @ApiModelProperty(value = "设施评分")
    private Integer facilitiesScore;

    @TableField("serviceScore")
    @ApiModelProperty(value = "服务评分")
    private Integer serviceScore;

    @TableField("hygieneScore")
    @ApiModelProperty(value = "卫生评分")
    private Integer hygieneScore;

    @TableField("score")
    @ApiModelProperty(value = "综合评分")
    private Integer score;

    @TableField("tripMode")
    @ApiModelProperty(value = "出游类型")
    private Long tripMode;

    @TableField("isOk")
    @ApiModelProperty(value = "是否满意（0：有待改善 1：值得推荐）")
    private Integer isOk;

    @TableField("creationDate")
    @ApiModelProperty(value = "")
    private java.util.Date creationDate;

    @TableField("createdBy")
    @ApiModelProperty(value = "")
    private Long createdBy;

    @TableField("modifyDate")
    @ApiModelProperty(value = "")
    private java.util.Date modifyDate;

    @TableField("modifiedBy")
    @ApiModelProperty(value = "")
    private Long modifiedBy;

}
